<% title "Attendance Information" %>
<%= render :partial => 'breadcrumbs' %>
<table class="form">
	<tr>
		<th colspan="3">Personal Information</th>
	</tr>
	<tr>
		<td width="3%">1.</td>
		<td width="13%"><strong>Name :</strong></td>
		<td><%=@employee.name%></td>
	</tr>
	<tr>
		<td>2.</td>
		<td><strong>Employee No :</strong></td>
		<td><%=@employee.employee_number%></td>
	</tr>
	<tr>
		<td>3.</td>
		<td><strong>Department : </strong></td>
		<td><%=@employee.department.title unless @employee.department.nil?%></td>
	</tr>
	<tr>
		<td>4.</td>
		<td><strong>Position : </strong></td>
		<td><%=@employee.position.title unless @employee.position.nil?%></td>
	</tr>
	<tr>
		<td>5.</td>
		<td><strong>Gred : </strong></td>
		<td><%=@employee.position.gred.title unless @employee.position.gred.nil?%></td>
	</tr>
</table>
<% form_for :leave_office, @leave_office, 
:url => { :controller => 'myoffice', :action => "create_leave_office" } do  %>
<table class="form">
		<tr>
			<th colspan="3">Leave Application Details</th>
		</tr>
		<tr>
			<td width="3%">1.</td>
			<td width="13%"><strong>From</strong></td>
			<td><%= datetime_select("leave_office", "date_time_left", :order => [:day, :month, :year],:start_year => Time.now.year, :end_year => Time.now.year)%></td>
		</tr>
		<tr>
			<td>2.</td>
			<td><strong>Until</strong></td>
			<td><%= time_select("leave_office", "time_back")%></td>
		</tr>
		<tr>
			<td>3.</td>
			<td><strong>Destination :</strong></td>
			<td><%=text_field :leave_office, :destination, :size => 80%></td>
		</tr>
		<tr>
			<td>5.</td>
			<td><strong> Remarks : </strong></td>
			<td><%=text_area :leave_office, :remarks,:rows => 20, :cols => 40%></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td><%=submit_tag 'Submit' %></td>
		</tr>
</table>
<% end %>

